Optimal. Leaf size=161 \[ -\frac{\left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 a^{2/3} \sqrt [3]{b}}+\frac{\left (\sqrt [3]{b} c-\sqrt [3]{a} d\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{2/3} b^{2/3}}-\frac{\left (\sqrt [3]{a} d+\sqrt [3]{b} c\right ) \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} a^{2/3} b^{2/3}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.232199, antiderivative size = 161, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.233 \[ -\frac{\left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 a^{2/3} \sqrt [3]{b}}+\frac{\left (\sqrt [3]{b} c-\sqrt [3]{a} d\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{2/3} b^{2/3}}-\frac{\left (\sqrt [3]{a} d+\sqrt [3]{b} c\right ) \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} a^{2/3} b^{2/3}} \]
Antiderivative was successfully verified.
[In] Int[(a*c + a*d*x + b*c*x^3 + b*d*x^4)/(a + b*x^3)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 38.0195, size = 150, normalized size = 0.93 \[ - \frac{\left (\sqrt [3]{a} d - \sqrt [3]{b} c\right ) \log{\left (\sqrt [3]{a} + \sqrt [3]{b} x \right )}}{3 a^{\frac{2}{3}} b^{\frac{2}{3}}} + \frac{\left (\sqrt [3]{a} d - \sqrt [3]{b} c\right ) \log{\left (a^{\frac{2}{3}} - \sqrt [3]{a} \sqrt [3]{b} x + b^{\frac{2}{3}} x^{2} \right )}}{6 a^{\frac{2}{3}} b^{\frac{2}{3}}} - \frac{\sqrt{3} \left (\sqrt [3]{a} d + \sqrt [3]{b} c\right ) \operatorname{atan}{\left (\frac{\sqrt{3} \left (\frac{\sqrt [3]{a}}{3} - \frac{2 \sqrt [3]{b} x}{3}\right )}{\sqrt [3]{a}} \right )}}{3 a^{\frac{2}{3}} b^{\frac{2}{3}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*d*x**4+b*c*x**3+a*d*x+a*c)/(b*x**3+a)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.103558, size = 124, normalized size = 0.77 \[ \frac{\left (\sqrt [3]{b} c-\sqrt [3]{a} d\right ) \left (2 \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )-\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )\right )-2 \sqrt{3} \left (\sqrt [3]{a} d+\sqrt [3]{b} c\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a}}}{\sqrt{3}}\right )}{6 a^{2/3} b^{2/3}} \]
Antiderivative was successfully verified.
[In] Integrate[(a*c + a*d*x + b*c*x^3 + b*d*x^4)/(a + b*x^3)^2,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.002, size = 186, normalized size = 1.2 \[{\frac{c}{3\,b}\ln \left ( x+\sqrt [3]{{\frac{a}{b}}} \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}-{\frac{c}{6\,b}\ln \left ({x}^{2}-x\sqrt [3]{{\frac{a}{b}}}+ \left ({\frac{a}{b}} \right ) ^{{\frac{2}{3}}} \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}+{\frac{c\sqrt{3}}{3\,b}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{x{\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}-1 \right ) } \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}-{\frac{d}{3\,b}\ln \left ( x+\sqrt [3]{{\frac{a}{b}}} \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}+{\frac{d}{6\,b}\ln \left ({x}^{2}-x\sqrt [3]{{\frac{a}{b}}}+ \left ({\frac{a}{b}} \right ) ^{{\frac{2}{3}}} \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}+{\frac{d\sqrt{3}}{3\,b}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{x{\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}-1 \right ) } \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*d*x^4+b*c*x^3+a*d*x+a*c)/(b*x^3+a)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*d*x^4 + b*c*x^3 + a*d*x + a*c)/(b*x^3 + a)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F(-2)] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*d*x^4 + b*c*x^3 + a*d*x + a*c)/(b*x^3 + a)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.06377, size = 76, normalized size = 0.47 \[ \operatorname{RootSum}{\left (27 t^{3} a^{2} b^{2} + 9 t a b c d + a d^{3} - b c^{3}, \left ( t \mapsto t \log{\left (x + \frac{9 t^{2} a^{2} b d + 3 t a b c^{2} + 2 a c d^{2}}{a d^{3} + b c^{3}} \right )} \right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*d*x**4+b*c*x**3+a*d*x+a*c)/(b*x**3+a)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.222472, size = 216, normalized size = 1.34 \[ -\frac{{\left (d \left (-\frac{a}{b}\right )^{\frac{1}{3}} + c\right )} \left (-\frac{a}{b}\right )^{\frac{1}{3}}{\rm ln}\left ({\left | x - \left (-\frac{a}{b}\right )^{\frac{1}{3}} \right |}\right )}{3 \, a} + \frac{\sqrt{3}{\left (\left (-a b^{2}\right )^{\frac{1}{3}} b c - \left (-a b^{2}\right )^{\frac{2}{3}} d\right )} \arctan \left (\frac{\sqrt{3}{\left (2 \, x + \left (-\frac{a}{b}\right )^{\frac{1}{3}}\right )}}{3 \, \left (-\frac{a}{b}\right )^{\frac{1}{3}}}\right )}{3 \, a b^{2}} + \frac{{\left (\left (-a b^{2}\right )^{\frac{1}{3}} a b^{3} c + \left (-a b^{2}\right )^{\frac{2}{3}} a b^{2} d\right )}{\rm ln}\left (x^{2} + x \left (-\frac{a}{b}\right )^{\frac{1}{3}} + \left (-\frac{a}{b}\right )^{\frac{2}{3}}\right )}{6 \, a^{2} b^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*d*x^4 + b*c*x^3 + a*d*x + a*c)/(b*x^3 + a)^2,x, algorithm="giac")
[Out]